home *** CD-ROM | disk | FTP | other *** search
/ Aminet 12 / Aminet 12 (1996)(GTI - Schatztruhe)[!][Jun 1996].iso / Aminet / dev / c / AFramev01.lha / AFramev01 / Include / box.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-26  |  1.1 KB  |  41 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. // box.hpp
  3. //
  4. // Jeffry A Worth
  5. // November 10, 1995
  6. //////////////////////////////////////////////////////////////////////////////
  7.  
  8. #ifndef __BOX_HPP__
  9. #define __BOX_HPP__
  10.  
  11. //////////////////////////////////////////////////////////////////////////////
  12. // INCLUDES
  13. #include <string.h>
  14. #include "aframe:include/gadget.hpp"
  15.  
  16. //////////////////////////////////////////////////////////////////////////////
  17. // Definitions
  18. #define BOX_OUTLINE 1   // Not currently supported
  19. #define BOX_SOLID 0
  20.  
  21. //////////////////////////////////////////////////////////////////////////////
  22. // Color Box Class
  23.  
  24. class AFBox : public AFGadget
  25. {
  26. public:
  27.   ~AFBox();
  28.  
  29.   virtual char *ObjectType() { return "Box"; };
  30.   virtual void Create(AFWindow* pwindow, AFRect *rect, ULONG id, UBYTE penColor,
  31.         UBYTE Outline);
  32.   virtual void SetColor(UBYTE penColor);
  33.   virtual void BuildImages();
  34.  
  35.   struct Image m_Box;
  36.   UBYTE m_penColor;
  37. };
  38.  
  39. //////////////////////////////////////////////////////////////////////////////
  40. #endif // __BOX_HPP__
  41.